home *** CD-ROM | disk | FTP | other *** search
- {
- This program simply tests the "task_stat" function in the "statdll" DLL
- and interprets the result.
- }
- PROGRAM teststao;
-
- USES
- wintypes, wincrt;
-
- FUNCTION Task_Stat(myhwnd : hwnd) : integer; FAR; EXTERNAL 'statdll';
-
- VAR
- i : integer;
-
- BEGIN {teststao}
- i := Task_Stat(0);
- writeln('Task_Stat = ', i);
- writeln;
- IF boolean(i) THEN
- writeln('Completed')
- ELSE
- writeln('*** Cancelled ***');
- END. {teststao}